<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<input class="1" type="text" name="" value="1" id="test1">
	<input class="1" type="text" name="" value="1">
	<input class="1" type="text" name="" value="1">
	<input class="1" type="text" name="" value="1">
	<select><option>1</option></select>
	<select><option>2</option></select>
	<select><option>3</option></select>
	<select><option>4</option></select>
</body>
<script type="text/javascript">
    function setDisabledValue(biaoqian) {
	  var txtArrs = document.getElementsByClassName("1");
	  for ( var i = 0; i < txtArrs.length; i++) {
	   var txt = txtArrs[i];
	     txt.disabled = true;
	  }
	 }
 	setDisabledValue('input');
 	setDisabledValue('select');
</script>
</html>